<template>
  <div class="sys-num">{{txt}}</div>
</template>
<script>

import {numToCurrency} from '../utils/util'
export default {
  name: 'sys-num',
  props: {
    value: [Number, String]
  },
  data() {
    return {}
  },
  methods: {},
  computed: {
    txt() {
      if(this.value === '' || typeof this.value === 'undefined' || this.value === null) {
        return ''
      }
      return numToCurrency(this.value)
    }
  },
  mounted() {
  }
}
</script>
<style scoped lang="scss">
  .sys-num {
    display: inline-block;
  }
</style>
